home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mgr / lib / makefile < prev    next >
Makefile  |  1990-09-09  |  2KB  |  83 lines

  1. #                        Copyright (c) 1987 Bellcore
  2. #                            All Rights Reserved
  3. #       Permission is granted to copy or use this program, EXCEPT that it
  4. #       may not be sold for profit, the copyright notice must be reproduced
  5. #       on copies, and credit should be given to Bellcore where it is due.
  6. #       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  7.  
  8. #    $Header: Makefile,v 4.5 88/08/29 13:38:23 sau Exp $
  9. #    $Source: /tmp/mgrsrc/lib/RCS/Makefile,v $
  10.  
  11. # makefile for mgr c-interface library
  12.  
  13. INSROOT=/mgr
  14. LIB= ./term.o
  15. INSDIR=$(INSROOT)/lib
  16. INCLDIR=$(INSROOT)/include
  17. START=.
  18. CPIO=lib.cpio
  19.  
  20. CFLAGS=-O 
  21.  
  22. PORTCFILES = ckmgrterm.c term.c text.c sfont.c sin.c
  23. CFILES = $(PORTCFILES) scribe.c
  24. OFILES = ckmgrterm.o term.o text.o sfont.o scribe.o sin.o
  25. HFILES = window.h term.h restart.h dump.h
  26.  
  27.  
  28. all small:    $(OFILES) libmgr.a
  29.  
  30. fast:
  31.         $(CC) -c $(CFLAGS) $(PORTCFILES)
  32.         rm -f libmgr.a
  33.         make all
  34.  
  35. libmgr.a:    $(OFILES)
  36.         gcc-ar rs $@ $?
  37.  
  38. term.o:        term.h window.h restart.h
  39.  
  40. text.o:        term.h window.h
  41.  
  42. textlib.a:    text.o sfont.o scribe.o sin.o 
  43.         gcc-ar rs textlib.a  text.o sfont.o scribe.o sin.o 
  44.  
  45. #    the optimizer dies on scribe.c 
  46.  
  47. scribe.o:    scribe.c
  48.         gcc -c scribe.c
  49.  
  50. smallinstall:    install
  51.  
  52. install:    all $(INSDIR) $(INCLDIR)
  53.     cd $(INCLDIR);  rm -f $(HFILES)
  54.     cp $(HFILES) $(INCLDIR)
  55. #        Do not install the files if INSDIR is the current directory.
  56. #        This stuff with ReMoveThisFile is to get around symbolic links.
  57.     rm -rf ./ReMoveThisFile
  58.     touch $(INSDIR)/ReMoveThisFile
  59.     if [ ! -f ./ReMoveThisFile ]; then \
  60.         (cd $(INSDIR);  rm -f libmgr.a ); \
  61.         cp libmgr.a $(INSDIR); \
  62.     else \
  63.         echo ">>  $(INSDIR) == current directory; no files copied"; \
  64.     fi
  65.     rm -rf $(INSDIR)/ReMoveThisFile
  66.  
  67. $(INSDIR) $(INCLDIR):
  68.         mkdir $@
  69.  
  70. clean:    
  71.         rm -f *.o core
  72.  
  73. clobber:
  74.         rm -f $(OFILES) libmgr.a bitmap.h blitlib.a
  75.  
  76. list:
  77.     @for i in Makefile ${CFILES} ${HFILES}; do \
  78.         echo "${START}/$$i"; \
  79.     done    
  80.  
  81. cpio:
  82.     make -s list | cpio -ocv > ${CPIO}
  83.